import request from '@/utils/request'

export function listtype(query) {
  return request({
    url: '/inspection/type/list',
    method: 'get',
    params: query
  })
}

export function createtype(data) {
  return request({
    url: '/inspection/type/create',
    method: 'post',
    data
  })
}

export function readtype(data) {
  return request({
    url: '/inspection/type/get/' + data.id,
    method: 'get'
  })
}

export function updatetype(data) {
  return request({
    url: '/inspection/type/update',
    method: 'post',
    data
  })
}

export function deletetype(data) {
  return request({
    url: '/inspection/type/delete/' + data.fchecktypeno,
    method: 'delete'
  })
}
